package com.dongrj.framework.core.exception;

/**
 * @author dongrongjun
 * @date 2020/08/04
 */
public class LoginException extends RuntimeException {

    private Integer code;

    public LoginException(String msg) {
        super(msg);
        this.code = 501;
    }

    public LoginException() {
        this("登录异常");
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
